//ExtractorHTML.java
package extractors;

import org.htmlparser.beans.StringBean;

public class ExtractorHTML
{
    public static void main (String[] args)
    {
    	String file = "ta.htm";
    	String s = getText(file);
        System.out.println (s);
    }
    
    public static String getText(String f)
    {
        StringBean sb = new StringBean ();
        sb.setLinks (false);
        sb.setReplaceNonBreakingSpaces (true);
        sb.setCollapse (true);
        sb.setURL (f);
        String s = sb.getStrings ();
        return s;
    }
}